package com.lianxi;

import cn.hutool.core.util.ReUtil;

public class HutoolTest {
    public static void main(String[] args) {
        String c1="asdfgh1jk2lmnbv3cryy";
        //将所有数字替换为下划线
        String r1=ReUtil.replaceAll(c1, "[0-9]", "_");
        System.out.println(r1);

        //自动转义特殊字符
        String c2="hello$smart[";
        String r2=ReUtil.escape(c2);
        System.out.println(r2);

    }
}
